package com.longjianghuasheng.logistics.business.wallet

import android.os.Bundle
import com.longjianghuasheng.logistics.R
import com.longjianghuasheng.logistics.base.BaseTitleFragment
import com.longjianghuasheng.logistics.business.wallet.adapter.WalletDetailAdapter
import com.longjianghuasheng.logistics.databinding.FragmentWalletPerMonthBinding
import com.longjianghuasheng.logistics.ext.initLinerDecoration

class WalletPerMonthFragment : BaseTitleFragment<WalletViewModel, FragmentWalletPerMonthBinding>() {

    private val walletDetailAdapter by lazy {
        WalletDetailAdapter()
    }

    override fun layoutId(): Int = R.layout.fragment_wallet_per_month

    override fun initView(savedInstanceState: Bundle?) {
        super.initView(savedInstanceState)
        initTitleBar("每月明细")

        mDatabind.rvDetail.initLinerDecoration(adapter = walletDetailAdapter)
    }

    override fun createObserver() {
        super.createObserver()
    }

    override fun initData() {
        super.initData()
    }

    override fun lazyLoadData() {
        super.lazyLoadData()
        walletDetailAdapter.setNewInstance(MutableList(5) { "" })
    }
}